<?php
  class TransactionsLogicHooks{
      function updateaccount(&$bean,$event,$arguments){
        $id = $bean->parent_id;
        if($id){
            $account  = new Account();
            $account->retrieve($id);
            $account->dacdiemgiaodich = $bean->loaigiaodich;
            $account->save();
        }
      }
  }
?>
